import sympy as sym

x=sym.Symbol('x')
print(sym.solve(x-1,x))
print(sym.solve(x**2-1,x))
print(sym.solve(x**2+1,x))
f=x+1
print(sym.solve(f,x))

x,y=sym.symbols('x,y')
print(sym.solve([x+y-1,x-y-3],[x,y]))

n=sym.Symbol('n')
print(sym.summation(2*n,(n,1,100)))

x=sym.Symbol('x')
i=sym.Symbol('i',integer=True)
f=sym.summation(x,(i,1,5))+10*x-15
print(sym.solve(f,x))
